package com.study.factory;

import com.study.dao.UserDao;
import com.study.dao.impl.UserDaoImpl;

//工厂类
public class UserDaoFactory2 {
    //非静态工厂方法
    public UserDao getUserDao(String name){
        return new UserDaoImpl();
    }
}
